package com.pap.product.item.auto.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.product.agent.item.dto.ItemCheckDTO;
import com.pap.product.item.auto.entity.Item;;

public interface ItemMapper extends PapBaseMapper<Item> {
	int deleteByPrimaryKey(String id);

	int selectCountByMap(Map<Object, Object> map);

	List<Item> selectListByMap(Map<Object, Object> map);

	Item selectByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int insert(Item record);

	int insertSelective(Item record);

	Item selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(Item record);

	int updateByPrimaryKey(Item record);
	
	// alexgaoyh add
	List<ItemCheckDTO> selectItemTypeAndValueTypeForList(@Param("clientLicenseId") String clientLicenseId);
}